package com.cloud.ribbon.controller;

import com.cloud.ribbon.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Ldj
 * @Date 2018/3/1 15:22
 * @Description 数据处理
 */
@RestController
public class RibbonController {

    @Autowired
    HelloService helloService;

    @RequestMapping("/hi")
    public String home(@RequestParam String name) {
        return helloService.hiService("tom");
    }
}
